﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Util;

namespace Authentication.Model.Model
{
    public partial class ApplicationGroup
    {
        //public ApplicationGroup()
        //{
        //    Accounts = new HashSet<Account>();
        //}
        [NotMapped]
        public Guid GuidKey { get { return new Guid(this.ApplicationKey); } }

        [NotMapped]
        public bool IsActive { get { return Active.IsYes(); } }

        public ICollection<Account> Accounts { get; set; }
    }
}
